
// 互斥锁的常用API
#include <stdio.h>
// 过程中给以下文件添加了注释，如果运行出问题，在备份中取一个新的文件覆盖
#include "./src/kernel/liteos_m/kal/cmsis/cmsis_liteos2.c"
#include <unistd.h>

#include "ohos_init.h"
#include "cmsis_os2.h"
#include <unistd.h>
#include "hi_wifi_api.h"
//#include "wifi_sta.h"
#include "lwip/ip_addr.h"
#include "lwip/netifapi.h"

#include "lwip/sockets.h"

// 互斥锁的创建和删除

osMutexId_t osMutexNew(const osMutexAttr_t *attr);
osMutexId_t osMutexDelete(osMutexId_t mutex_id);

// 互斥锁的获取与释放

osStatus_t osMutexAcquire(osMutexId_t mutex_id, uint32_t timeout);
osStatus_t osMutexRelease(osMutexId_t mutex_id);

// 获取关于互斥锁的信息

osThreadId_t osMutexGetOwner(osMutexId_t mutex_id);